<!DOCTYPE html>
<html lang="en">
<head  th:include="head :: fragment_head">
    <title>密码修改</title>
</head>
<body>
<div class="changeTop">
    <h2>密码修改</h2>
</div>
<form class="changeForm" action="#" th:action="@{/user/updatePassword}" th:object="${wxUser}" method="post">
    <div class="form-item">
        <input required="required" type="text" th:field="*{username}" placeholder="用户名"/>
        <span style="color: red" th:if="${#fields.hasErrors('username')}" th:errors="*{username}"></span>
    </div>

    <div class="form-item">
        <input type="text" th:field="*{password}" placeholder="新密码"/>
        <span style="color: red" th:if="${#fields.hasErrors('password')}" th:errors="*{password}"></span>
    </div>
    <div class="form-login">
        <button type="submit" class="loginBtn">提交</button>
    </div>
</form>

<div class="footer" th:include="footer :: fragment_footer"></div>
<script type="text/javascript" th:src="@{/js/jquery.min.js}" src="js/jquery.min.js" ></script>
<script type="text/javascript" th:src="@{/js/footer.js}" src="js/footer.js" ></script>
</body>
</html>